
@menuBg: #474559;
@sideBarWidth :180px;

#app {
  .main-container {
    transition: margin-left .2s;
    margin-left: @sideBarWidth;
    position: relative;

    .nav-bar {
      transition: margin-left .2s;
      display: flex;
      flex-direction: row;
      align-items: center;
      background-color: white;
      height: 40px;
      box-shadow: 1px 0 3px rgba(0, 0, 0, 0.15);
      position: fixed;
      margin-left: @sideBarWidth;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
    }
  }

  .sidebar-container {
    transition: width 0.2s;
    width: @sideBarWidth !important;
    background-color: @menuBg;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    overflow: hidden;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12);


    .scrollbar-wrapper {
      height: 100%;
      overflow-y: auto !important;
      overflow-x: hidden;
    }

    .scrollbar-wrapper::-webkit-scrollbar {
      display: none
    }
  }

  .hideSidebar {
    .sidebar-container {
      width: 0 !important;
    }

    .main-container {
      margin-left: 0;

      .nav-bar {
        margin-left: 0;
      }
    }
  }

  .data-container {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px 1px rgba(154, 154, 204, .22);
    padding: 20px
  }

  // mobile responsive

  .mobile {
    .main-container {
      margin-left: 0;

      .nav-bar {
        margin-left: 0;
      }
    }

    .sidebar-container {
      transition: transform .2s;
      width: @sideBarWidth !important;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.2s;
        transform: translate3d(-100%, 0, 0);
      }
    }

    .data-container {
      background: none;
      border: none;
      box-shadow: none;
      padding: 0;
    }
  }

  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}
